package com.bosssoft;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * @author 郭其鑫
 */
@SpringBootApplication
@EnableCaching
@EnableSwagger2
@EnableDiscoveryClient
@RefreshScope
@ComponentScan({"com.bosssoft.gateway.authorization"})
@MapperScan("com.bosssoft.gateway.authorization.dao.mapper")
@EnableFeignClients
public class GatewayAuthorizationApp {
    public static void main(String[] args) {
        SpringApplication.run(GatewayAuthorizationApp.class, args);
    }
}
